#-*- codeing = utf-8 -*-
#@Time:2022/9/1412:53
#@Author :计科1813-14-张玉婷
#@File:3.6.py
#@Software:PyCharm

import random
choose = int(input("输入您想随机摸几次："))
for a in range(1, choose+1):
    while 1:
        red = random.randint(0, 3)
        yellow = random.randint(0, 3)
        green = random.randint(0, 6)
        if red + yellow + green == 8:
            print("第%d次选择:\t红球%d个\t黄球%d个\t绿球%d个" % (a, red, yellow, green))
            break
